import request from '@/utils/request'

function productsByPage(start, limit, data) {
  return request({
    url: `/lejuAdmin/product/productsByPage/${start}/${limit}`,
    method: 'post',
    data
  })
}

function findAllBrand() {
  return request({
    url: '/lejuAdmin/brand/findAllBrand'
  })
}

function del(id) {
  return request({
    url: `/lejuAdmin/product/del/${id}`,
    method: 'delete'
  })
}
export {
  productsByPage,
  findAllBrand,
  del
}
